package cn.sany.cterminal.dao;

import cn.sany.cterminal.entity.RealtimeInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;

@Mapper
public interface RealtimeInfoDao {
    int deleteByPrimaryKey(Integer id);

    int insert(RealtimeInfo record);

    int insertSelective(RealtimeInfo record);

    RealtimeInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(RealtimeInfo record);

    int updateByPrimaryKey(RealtimeInfo record);

    RealtimeInfo selectByVehicleId(Integer vehicleId);

    int updateByVehicleId(RealtimeInfo newInfo);


    int checkVehicleOnline(Date nowTime);

    List<RealtimeInfo> selectAll();

    Double getLoadFactor();

    void updateOnlineState(int state);

    Integer selectOnLineNum();
}